package com.rzn.reading.service;


import com.rzn.reading.model.dto.literature.LiteratureItemListDTO;
import com.rzn.reading.model.dto.readingProgress.IsReadingLiteratureDTO;
import com.rzn.reading.model.dto.readingProgress.ReadingProgressCreateInputDTO;
import com.rzn.reading.model.dto.readingProgress.UserReadingProgressDTO;

import java.util.List;

/**
 * <p>
 * 阅读进度表 服务类
 * </p>
 *
 * @author rzn
 * @since 2022-02-12
 */
public interface ReadingProgressService {

    UserReadingProgressDTO getUserLiteratureProgress(Integer userId, Integer literatureId);

    Boolean deleteLiteratureProgress(Integer id,Integer state);

    Boolean updateUserReadingProgress(UserReadingProgressDTO userReadingProgressDTO);

    Boolean insertUserReadingProgress(ReadingProgressCreateInputDTO readingProgressCreateInputDTO );

    List<IsReadingLiteratureDTO> getIsReadingLiterature(Integer userId);

}
